<?php
/**
 * defines exceptions for Webappkit
 *
 * This file is part of Webappkit, a packages system for PHP web apps
 * @link http://webappkit.net
 * @package webappkit
 * @author J.Ducastel <nospam0@ducastel.name>
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
 */

/**
 * webappkit exceptions
 */
class WakException extends Exception {
    protected $message = "Webappkit base exception";
}

class WakInvalidArgument extends WakException {
    protected $message = "Argument was invalid";
}

class WakBadKit extends WakException {
    protected $message = "A kit is malformed";
}

class WakBadCfg extends WakException {
    protected $message = "A config file is broken or missing";
}

class WakBadPHP extends WakException {
    protected $message = "PHP version is out of functional range";
}

class WakBadVersion extends WakException {
    protected $message = "Kit version is not in required range";
}

class WakMissingFile extends WakException {
    protected $message = "A file is missing";
}

class WakMissingClass extends WakException {
    protected $message = "A class is missing";
}

class WakMissingKit extends WakException {
    protected $message = "A kit is missing";
}

class WakNotImplemented extends WakException {
    protected $message = "Method/feature is not implemented";
}
